#include "Log.hpp"

using namespace LogArea;

int main()
{
    USE_CONSOLESTRATEGY();//使用控制台刷新策略

    LOG(LogLevel::DEBUG) <<"hello world";
    LOG(LogLevel::DEBUG) <<"hello world";
    LOG(LogLevel::DEBUG) <<"hello world";



    USE_FILESTRATEGY();//使用文件刷新策略
    LOG(LogLevel::DEBUG) <<"hello file";
    LOG(LogLevel::DEBUG) <<"hello file";
    LOG(LogLevel::DEBUG) <<"hello file";

    return 0;
}